/*
 * definitions.h
 *
 * Created: 20.09.2012 08:49:23
 *  Author: bardbakk
 */ 


#ifndef DEFINITIONS_H_
#define DEFINITIONS_H_

/*Bool */
#define TRUE 1
#define FALSE 0

/* a=target variable, b=bit number to act upon 0-n */
#define BIT_SET(a,b) ((a) |= (1<<(b)))
#define BIT_CLEAR(a,b) ((a) &= ~(1<<(b)))
#define BIT_FLIP(a,b) ((a) ^= (1<<(b)))
#define BIT_CHECK(a,b) ((a) & (1<<(b)))


#endif /* DEFINITIONS_H_ */